# eval 将字符串str当成有效的表达式
"""
str1= "input('请输入您的姓名')"
print(str1)
print(eval(str1))
"""
# json  {"name":"王长帅"}
import json
person =  {'name':'zhangsan','age':18,'gender':'female'}
print(type(person)) #dict
# 将字典 转换成 json字符串对象
print(json.dumps(person)) # 这已经是字符串对象了
print(type(json.dumps(person)))
person_json = json.dumps(person) # json字符串对象

# 将json字符串对象，转换成python原始对象：字典
person_dict = json.loads(person_json)
print(person_dict)
print(type(person_dict))








